﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharePointCommander.Model.PropertySheet
{
    public class PropertyItemChoice : PropertyItem<String>
    {
        public string ChoicesString { get; set; }
        public string[] Choices {
            get { return (ChoicesString ?? "").Split(','); }
            set { ChoicesString = string.Join(",", value); }
        }

        public PropertyItemChoice(string name, string value)
            : base(name, value)
        {
        }
    }
}
